Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 3 - Window Manager Reference / Window Manager Resources


The Window Definition Function Resource

CHANGED WITH THE APPEARANCE MANAGER

The window definition ('WDEF') resource is the executable code for your window definition function. Provide as the resource data the compiled or assembled code of your window definition procedure. The entry point of your procedure must be at the beginning of the resource data. Under Appearance, there are two new values that the Window Manager can pass in the message parameter to your 'WDEF', kWindowMsgGetFeatures and kWindowMsgGetRegion.

See MyWindowDefProc for more information about creating a window definition function.

WARNING
All resources of type 'WDEF' should be nonpurgeable, to ensure that the resource is always loaded. If the resource is not available when the Window Manager needs to load it, a crash will occur.
WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
The messages kWindowMsgGetFeatures and kWindowMsgGetRegion will not be sent to your window definition function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998